Powershell
CLI
tool
Powershell is the major command line tool for windows
Basics
Files
- List contents of directory
-
dir # or ls
- Get current working directory
-
pwd
- Change directory
-
cd # or chdir
- Delete file / folder
-
del # or rm # or rmdir
- Copy file
-
cp # or copy
- Move file
-
mv # or move
- Create variables
-
$myVariable = "C:\path\name\whatever"
Processes
List all running processes, ordered by cpu-usage
Get-Process |Sort-Object cpu -Descending
Python
- execute python program
-
.py py path\to\file
- install package with pip
-
-m pip install pandas py